package com.sunpy.commonlock.pub;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@ConfigurationProperties(prefix = "mysql-lock")
@Component
public class MysqlLockConfig {
    /**
     * 超时时间
     */
    private int timeout;
    /**
     * 是否公平
     */
    private boolean fair;
    /**
     * 续期时间
     */
    private int retime;
    /**
     * 是否重入
     */
    private boolean reentry;

}
